package com.ssm.helong.shop.entity;

/**
 * 商品属性实体类
 */
public class GoodsAttribute {
    //商品id
    private Integer id;
    //所属小类id
    private Integer goodsId;
    //商品名称
    private String goodsName;
    //属性
    private String goodsAttribute;
    //属性价格
    private Double goodsPrice;
    //商品库存
    private Integer goodsStock;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsAttribute() {
        return goodsAttribute;
    }

    public void setGoodsAttribute(String goodsAttribute) {
        this.goodsAttribute = goodsAttribute;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsStock() {
        return goodsStock;
    }

    public void setGoodsStock(Integer goodsStock) {
        this.goodsStock = goodsStock;
    }

    @Override
    public String toString() {
        return "GoodsAttribute{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsAttribute='" + goodsAttribute + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", goodsStock=" + goodsStock +
                '}';
    }
    //无参构造
    public GoodsAttribute() {
    }
    //有参构造
    public GoodsAttribute(Integer id, Integer goodsId, String goodsName, String goodsAttribute, Double goodsPrice, Integer goodsStock) {
        this.id = id;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsAttribute = goodsAttribute;
        this.goodsPrice = goodsPrice;
        this.goodsStock = goodsStock;
    }
}
